Dynomotion

Group: DynoMotion Message: 8412 From: cristian_atzori Date: 9/29/2013
Subject: Correlate ADC input with axis configuration values
Is it possibile to link the value read at one ADC input to one parameter in the axis configuration?
I would like to read the digital value of one ADC input, use it in a math operation and then send the result to the InputOffset parameter in one axis configuration.

Also I would like the to use the reading of an ADC to drive the Feed rate.
This is needed in order to adapt in real time the feed rate (thus the force applied to the endmill) reading the DC value from a circuit that converts sound (vibrations) to DC.

Thank you
Group: DynoMotion Message: 8413 From: Tom Kerekes Date: 9/29/2013
Subject: Re: Correlate ADC input with axis configuration values
Hi Cristian,

You could connect a parameter to an ADC input with something like:

    ch0->InputOffset0 = ADC(0) * MYFACTOR;

Sound to Feed Rate sounds a bit unusual.  But that would be similar to the Potentiometer Feed Rate control of a recent post.  See the SetFROwithPot.c Example.

http://groups.yahoo.com/neo/groups/DynoMotion/conversations/messages/8389

There will be some delay in the response to feed rate changes as it will be applied to motion beyond the Trajectory Planner Lookahead.  Hardware feedhold would have a more immediate effect.

Regards
TK

Group: DynoMotion Message: 8414 From: cristian_atzori Date: 9/30/2013
Subject: Re: Correlate ADC input with axis configuration values

Thanks Tom for the reply, it's wonderful that we can arrange similar operations in such a simple way!


About the vibration transducer I will collect istantaneous values with a circuit that make an average over a time interval of 2 seconds and keeps track of the max level. In fact the value can only rise (and the feed slow down) so the potentiometer example is perfect for my application.


I'm amazed about the capabilities of this controller...really.


Best regards.





---In dynomotion@yahoogroups.com, <tk@...> wrote:

Hi Cristian,

You could connect a parameter to an ADC input with something like:

    ch0->InputOffset0 = ADC(0) * MYFACTOR;

Sound to Feed Rate sounds a bit unusual.  But that would be similar to the Potentiometer Feed Rate control of a recent post.  See the SetFROwithPot.c Example.

http://groups.yahoo.com/neo/groups/DynoMotion/conversations/messages/8389

There will be some delay in the response to feed rate changes as it will be applied to motion beyond the Trajectory Planner Lookahead.  Hardware feedhold would have a more immediate effect.

Regards
TK